import type { TwikooConfiguration } from "@/types/config";
import type { WebResult } from "@/types/web-result";
import httpRequest from "@/utils/http";

export async function GET() {
	const twikooConfiguration = await httpRequest<WebResult<TwikooConfiguration>>(
		{
			url: "/api/configuration/twikoo",
		},
	).then((result) => {
		return result?.data;
	});
	return new Response(JSON.stringify(twikooConfiguration));
}
